//
//  PopoverViewController.swift
//  MyNavigationbar
//
//  Created by teleframe on 15/8/25.
//  Copyright (c) 2015年 tf. All rights reserved.
//

import UIKit

class PopoverViewController: UIViewController {

    
    var selectionHandler:((item: Int)->Void)?
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func selectedAction(sender: UIButton) {
        if sender.tag == 100{
        
            selectionHandler?(item: 100)
        
        }else{
        
            selectionHandler?(item: 101)
        }
        dismissViewControllerAnimated(true, completion: nil)
        
    }
}
